import {HTTP} from "../until/http.js";
class LikeModel extends HTTP{
  onlike(behavior,artid,category){
      let url=(behavior=="like"?"/like":"/like/cancel");
      this.request({
        url:url,
        method:"POST",
        data:{
          art_id:artid,
          type:category
        }
      });
  }
  getClassicLikeStatus(id, type, sCallback){
      this.request({
        url:'/classic/'+type+"/"+id+"/favor",
        success:sCallback
      })
  }
}

export {LikeModel};